package com.glory.brepda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.LotInfoEntity;
import com.glory.brepda.entity.WaferEntity;

import java.util.ArrayList;
import java.util.List;

public class ChipAdapter extends BaseQuickAdapter<WaferEntity.MLOT, BaseViewHolder> {

    public ChipAdapter(@Nullable List<WaferEntity.MLOT> data) {
        super(R.layout.item_chip_list);
    }

    @Override
    protected void convert(BaseViewHolder helper, WaferEntity.MLOT item) {
        helper.setText(R.id.tvMaterialName,item.getMATERIALNAME());
        helper.setText(R.id.tvMLOTID,item.getMLOTID());
        helper.setText(R.id.tvPartnerLOTID,item.getPARTNERLOTID());
        helper.setText(R.id.tvReserved5,item.getRESERVED5());
        helper.setText(R.id.tvMainQTY,item.getMAINQTY());
        helper.setText(R.id.tvSubQTY,item.getSUBQTY());
        helper.setText(R.id.tvReserved1,item.getRESERVED1());
    }
}
